package com.ruihang.generalibrary.ui.widget;

import android.content.Context;
import android.support.v7.widget.AppCompatEditText;
import android.util.AttributeSet;

import com.ruihang.generalibrary.utils.FontProvider;


public class CustomFontEditText extends AppCompatEditText {
    private boolean isUseOuterType;
    public CustomFontEditText(Context context) {
        super(context);
        if (isUseOuterType) {
            setTypeface(FontProvider.getTypeface(context));
        }
    }

    public CustomFontEditText(Context context, AttributeSet attrs) {
        super(context, attrs);
        if (isUseOuterType) {
            setTypeface(FontProvider.getTypeface(context));
        }
    }

    public CustomFontEditText(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        if (isUseOuterType) {
            setTypeface(FontProvider.getTypeface(context));
        }
    }
}
